<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <%@ include file="/easyprepay/jsp/common/head.jsp"%>
    <%@ taglib uri="/easyprepay" prefix="easy"%>
    <title>添加权限</title>
     <script type="text/javascript">
    	function getReturn(){
    		location.href="<%=basePath%>userRole.do?method=viewFunction&";
    	}
    	function addFunction(){
    		var functionName = document.getElementById("functionName").value;
    		
    		if(!functionName==' ' ){
    		location.href="<%=basePath%>userRole.do?method=addFunction&functionName="+functionName;
    		}else{
    		alert("请正确填写权限的名称");
    		}
    		//
    	}
    </script>
	

  </head>
  
  <body>
   
 
    	<table >
    		<tr><td>添加权限</td></tr>
    		<tr><td>权限名称</td></tr>
    		<tr><td><input type="text" id="functionName" name="functionName" ></td></trd>
    		<tr><td><input type="button" value="添加" onclick="addFunction()"><input type="reset" value="取消"><input type="button" value="返回" onclick="getReturn()"></td></tr>
    	</table>
  </body>
</html>
